package com.springmvc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.codec.binary.Base64;
import org.springframework.stereotype.Service;

import com.springmvc.dao.UserMapper;
import com.springmvc.model.User;
import com.springmvc.service.IUserService;

@Service("userService")
public class UserService implements IUserService {
	@Resource
	private UserMapper userMapper;

	public int deleteByPrimaryKey(Long id) {
		
		return 0;
	}

	public int insert(User record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int insertSelective(User record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public User selectByPrimaryKey(Long id) {
		return this.userMapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(User record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKey(User record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public List<User> selectBypwd(String pwd) {
		// TODO Auto-generated method stub
		return this.userMapper.selectBypwd(pwd);
	}

	@Override
	public List<User> selectTestTimeForOrder() {
		
		return userMapper.selectTestTimeForOrder();
	}

	@Override
	public List<User> selectTestTime() {
		
		return userMapper.selectTestTime();
	}

}
